package com.bilgeadam.customtag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;

/**
 *
 * @author Bora SAYINER
 * @since Jan 17, 2015 6:54:25 PM
 * @version 1.0
 */
public class HelloTag extends SimpleTagSupport {

	private String userName;

	@Override
	public void doTag() throws JspException, IOException {
		JspWriter writer = getJspContext().getOut();
		writer.print("<h1>Hello, " + userName + " welcome.");
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
